package com.jie.jie.percent;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;

import com.jie.jie.R;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class PercentActivity extends AppCompatActivity {

    @Bind(R.id.pr_btn)
    Button prBtn;
    @Bind(R.id.pf_btn)
    Button pfBtn;
    @Bind(R.id.pl_btn)
    Button plBtn;
    @Bind(R.id.activity_percent)
    LinearLayout activityPercent;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_percent);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.pr_btn, R.id.pf_btn, R.id.pl_btn})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.pr_btn:
                startActivity(new Intent(PercentActivity.this,PercentRActivity.class));
                break;
            case R.id.pf_btn:
                startActivity(new Intent(PercentActivity.this,PercentFActivity.class));
                break;
            case R.id.pl_btn:
                startActivity(new Intent(PercentActivity.this,PercentLActivity.class));
                break;
        }
    }
}
